/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 * All rights reserved.
 *
 * This source code is licensed under the license found in the
 * LICENSE file in the root directory of this source tree.
 */

import Foundation

enum DateFormatter {
  private static var isoFormatter = ISO8601DateFormatter()

  static func format(ISODateString date: String) -> Date? {
    isoFormatter.date(from: date)
  }
}
